package com.teamall.web.fpgz.db.dao.mapper;

import com.teamall.web.fpgz.db.arg.CodeFamilyIncomeArg;
import com.teamall.web.fpgz.db.po.CodeFamilyIncomePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeFamilyIncomeMapper {
    
    List<Integer> countByArg(CodeFamilyIncomeArg arg);

    List<CodeFamilyIncomePO> selectByArg(CodeFamilyIncomeArg arg);

    CodeFamilyIncomePO selectByPrimaryKey(Integer id);

    List<CodeFamilyIncomePO> selectByArgAndPage(CodeFamilyIncomeArg arg, RowBounds rowBound);

    int insert(CodeFamilyIncomePO record);

    int insertSelective(CodeFamilyIncomePO record);

    int insertBatch(@Param("list") List<CodeFamilyIncomePO> records);

    int updateByArgSelective(@Param("record") CodeFamilyIncomePO record,
            @Param("arg") CodeFamilyIncomeArg arg);

    int updateByArg(@Param("record") CodeFamilyIncomePO record,
            @Param("arg") CodeFamilyIncomeArg arg);

    int updateByPrimaryKeySelective(CodeFamilyIncomePO record);

    int updateByPrimaryKey(CodeFamilyIncomePO record);
    
    int deleteByArg(CodeFamilyIncomeArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}